package com.desksoft.ecommerce.entity.mall.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.desksoft.ecommerce.base.Entity;

public class RewardExample implements Entity{
    /***************************************
	 * <pre>
	 * 版权所有：杭州迪科软件 保留所有权利
	 * 创建日期: @date 2012-12-5 下午04:30:36
	 * 创建作者：jh
	 * 文件名称：RewardExample.java
	 * 版本：1.0
	 * 功能：
	 * 最后修改时间：
	 * 修改记录：
	 * </pre>
	 *****************************************/
	private static final long serialVersionUID = 6872472788814817673L;

	protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RewardExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRewardidIsNull() {
            addCriterion("rewardID is null");
            return (Criteria) this;
        }

        public Criteria andRewardidIsNotNull() {
            addCriterion("rewardID is not null");
            return (Criteria) this;
        }

        public Criteria andRewardidEqualTo(String value) {
            addCriterion("rewardID =", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidNotEqualTo(String value) {
            addCriterion("rewardID <>", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidGreaterThan(String value) {
            addCriterion("rewardID >", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidGreaterThanOrEqualTo(String value) {
            addCriterion("rewardID >=", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidLessThan(String value) {
            addCriterion("rewardID <", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidLessThanOrEqualTo(String value) {
            addCriterion("rewardID <=", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidLike(String value) {
            addCriterion("rewardID like", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidNotLike(String value) {
            addCriterion("rewardID not like", value, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidIn(List<String> values) {
            addCriterion("rewardID in", values, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidNotIn(List<String> values) {
            addCriterion("rewardID not in", values, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidBetween(String value1, String value2) {
            addCriterion("rewardID between", value1, value2, "rewardid");
            return (Criteria) this;
        }

        public Criteria andRewardidNotBetween(String value1, String value2) {
            addCriterion("rewardID not between", value1, value2, "rewardid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidIsNull() {
            addCriterion("eventDefineID is null");
            return (Criteria) this;
        }

        public Criteria andEventdefineidIsNotNull() {
            addCriterion("eventDefineID is not null");
            return (Criteria) this;
        }

        public Criteria andEventdefineidEqualTo(String value) {
            addCriterion("eventDefineID =", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotEqualTo(String value) {
            addCriterion("eventDefineID <>", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidGreaterThan(String value) {
            addCriterion("eventDefineID >", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidGreaterThanOrEqualTo(String value) {
            addCriterion("eventDefineID >=", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidLessThan(String value) {
            addCriterion("eventDefineID <", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidLessThanOrEqualTo(String value) {
            addCriterion("eventDefineID <=", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidLike(String value) {
            addCriterion("eventDefineID like", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotLike(String value) {
            addCriterion("eventDefineID not like", value, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidIn(List<String> values) {
            addCriterion("eventDefineID in", values, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotIn(List<String> values) {
            addCriterion("eventDefineID not in", values, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidBetween(String value1, String value2) {
            addCriterion("eventDefineID between", value1, value2, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andEventdefineidNotBetween(String value1, String value2) {
            addCriterion("eventDefineID not between", value1, value2, "eventdefineid");
            return (Criteria) this;
        }

        public Criteria andRewardnameIsNull() {
            addCriterion("rewardName is null");
            return (Criteria) this;
        }

        public Criteria andRewardnameIsNotNull() {
            addCriterion("rewardName is not null");
            return (Criteria) this;
        }

        public Criteria andRewardnameEqualTo(String value) {
            addCriterion("rewardName =", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameNotEqualTo(String value) {
            addCriterion("rewardName <>", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameGreaterThan(String value) {
            addCriterion("rewardName >", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameGreaterThanOrEqualTo(String value) {
            addCriterion("rewardName >=", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameLessThan(String value) {
            addCriterion("rewardName <", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameLessThanOrEqualTo(String value) {
            addCriterion("rewardName <=", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameLike(String value) {
            addCriterion("rewardName like", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameNotLike(String value) {
            addCriterion("rewardName not like", value, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameIn(List<String> values) {
            addCriterion("rewardName in", values, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameNotIn(List<String> values) {
            addCriterion("rewardName not in", values, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameBetween(String value1, String value2) {
            addCriterion("rewardName between", value1, value2, "rewardname");
            return (Criteria) this;
        }

        public Criteria andRewardnameNotBetween(String value1, String value2) {
            addCriterion("rewardName not between", value1, value2, "rewardname");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNull() {
            addCriterion("siteID is null");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNotNull() {
            addCriterion("siteID is not null");
            return (Criteria) this;
        }

        public Criteria andSiteidEqualTo(Short value) {
            addCriterion("siteID =", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotEqualTo(Short value) {
            addCriterion("siteID <>", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThan(Short value) {
            addCriterion("siteID >", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThanOrEqualTo(Short value) {
            addCriterion("siteID >=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThan(Short value) {
            addCriterion("siteID <", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThanOrEqualTo(Short value) {
            addCriterion("siteID <=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidIn(List<Short> values) {
            addCriterion("siteID in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotIn(List<Short> values) {
            addCriterion("siteID not in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidBetween(Short value1, Short value2) {
            addCriterion("siteID between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotBetween(Short value1, Short value2) {
            addCriterion("siteID not between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNull() {
            addCriterion("startDate is null");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNotNull() {
            addCriterion("startDate is not null");
            return (Criteria) this;
        }

        public Criteria andStartdateEqualTo(Date value) {
            addCriterion("startDate =", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotEqualTo(Date value) {
            addCriterion("startDate <>", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThan(Date value) {
            addCriterion("startDate >", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThanOrEqualTo(Date value) {
            addCriterion("startDate >=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThan(Date value) {
            addCriterion("startDate <", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThanOrEqualTo(Date value) {
            addCriterion("startDate <=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateIn(List<Date> values) {
            addCriterion("startDate in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotIn(List<Date> values) {
            addCriterion("startDate not in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateBetween(Date value1, Date value2) {
            addCriterion("startDate between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotBetween(Date value1, Date value2) {
            addCriterion("startDate not between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNull() {
            addCriterion("endDate is null");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNotNull() {
            addCriterion("endDate is not null");
            return (Criteria) this;
        }

        public Criteria andEnddateEqualTo(Date value) {
            addCriterion("endDate =", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotEqualTo(Date value) {
            addCriterion("endDate <>", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThan(Date value) {
            addCriterion("endDate >", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThanOrEqualTo(Date value) {
            addCriterion("endDate >=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThan(Date value) {
            addCriterion("endDate <", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThanOrEqualTo(Date value) {
            addCriterion("endDate <=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateIn(List<Date> values) {
            addCriterion("endDate in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotIn(List<Date> values) {
            addCriterion("endDate not in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateBetween(Date value1, Date value2) {
            addCriterion("endDate between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotBetween(Date value1, Date value2) {
            addCriterion("endDate not between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysIsNull() {
            addCriterion("extendEventKeys is null");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysIsNotNull() {
            addCriterion("extendEventKeys is not null");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysEqualTo(String value) {
            addCriterion("extendEventKeys =", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysNotEqualTo(String value) {
            addCriterion("extendEventKeys <>", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysGreaterThan(String value) {
            addCriterion("extendEventKeys >", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysGreaterThanOrEqualTo(String value) {
            addCriterion("extendEventKeys >=", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysLessThan(String value) {
            addCriterion("extendEventKeys <", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysLessThanOrEqualTo(String value) {
            addCriterion("extendEventKeys <=", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysLike(String value) {
            addCriterion("extendEventKeys like", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysNotLike(String value) {
            addCriterion("extendEventKeys not like", value, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysIn(List<String> values) {
            addCriterion("extendEventKeys in", values, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysNotIn(List<String> values) {
            addCriterion("extendEventKeys not in", values, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysBetween(String value1, String value2) {
            addCriterion("extendEventKeys between", value1, value2, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andExtendeventkeysNotBetween(String value1, String value2) {
            addCriterion("extendEventKeys not between", value1, value2, "extendeventkeys");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Short value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Short value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Short value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Short value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Short value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Short> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Short> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Short value1, Short value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Short value1, Short value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNull() {
            addCriterion("operator is null");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNotNull() {
            addCriterion("operator is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorEqualTo(String value) {
            addCriterion("operator =", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotEqualTo(String value) {
            addCriterion("operator <>", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThan(String value) {
            addCriterion("operator >", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThanOrEqualTo(String value) {
            addCriterion("operator >=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThan(String value) {
            addCriterion("operator <", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThanOrEqualTo(String value) {
            addCriterion("operator <=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLike(String value) {
            addCriterion("operator like", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotLike(String value) {
            addCriterion("operator not like", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorIn(List<String> values) {
            addCriterion("operator in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotIn(List<String> values) {
            addCriterion("operator not in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorBetween(String value1, String value2) {
            addCriterion("operator between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotBetween(String value1, String value2) {
            addCriterion("operator not between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateIsNull() {
            addCriterion("lastUpdateDate is null");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateIsNotNull() {
            addCriterion("lastUpdateDate is not null");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateEqualTo(Date value) {
            addCriterion("lastUpdateDate =", value, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateNotEqualTo(Date value) {
            addCriterion("lastUpdateDate <>", value, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateGreaterThan(Date value) {
            addCriterion("lastUpdateDate >", value, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("lastUpdateDate >=", value, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateLessThan(Date value) {
            addCriterion("lastUpdateDate <", value, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateLessThanOrEqualTo(Date value) {
            addCriterion("lastUpdateDate <=", value, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateIn(List<Date> values) {
            addCriterion("lastUpdateDate in", values, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateNotIn(List<Date> values) {
            addCriterion("lastUpdateDate not in", values, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateBetween(Date value1, Date value2) {
            addCriterion("lastUpdateDate between", value1, value2, "lastupdatedate");
            return (Criteria) this;
        }

        public Criteria andLastupdatedateNotBetween(Date value1, Date value2) {
            addCriterion("lastUpdateDate not between", value1, value2, "lastupdatedate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}